﻿using Terraria;
using Terraria.DataStructures;
using WorseGame.Common.Cores.Custom.Interfaces;

namespace WorseGame.Common.Cores.CustomCatchRules.Conditions
{
    public class NegationCondition(ICatchCondition normalCatchCondition) : ICatchCondition {
        private readonly ICatchCondition _normalCatchCondition = normalCatchCondition;

        public bool IsConditionMet(FishingAttempt attempt, Projectile bobber) => !_normalCatchCondition.IsConditionMet(attempt, bobber);
    }
}